<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:U('Capital/withdrawals')}">提现明细</a></li>
		<!--<li><a href="{:U('Capital/pay')}">已支付</a></li>-->
		<!--<li><a href="{:U('Capital/pay')}">未支付</a></li>-->
	</ul>
	<form class="well form-search" method="post" action="{:U('Capital/withdrawals')}">
		关键字:
		<input type="text" name="keywork" style="width: 200px;" value="{:I('request.keywork/s','')}" placeholder="用户id">
		提现状态：
		<select name="status" style="width: 100px">
			<option value="">全部</option>
			<option value="SUCCESS">成功</option>
			<option value="FAIL">失败</option>
		</select>
		时间：
		<input type="text" name="start_time" class="js-datetime" value="{:I('request.start_time/s','')}" style="width: 120px;" autocomplete="off">-
		<input type="text" class="js-datetime" name="end_time" value="{:I('request.end_time/s','')}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:U('Capital/withdrawals')}">清空</a>
	</form>
	<table class="table table-hover table-bordered">
		<thead>
		<tr>
			<th width="50">ID</th>
			<th>用户id</th>
			<th>昵称</th>
			<th>头像</th>
			<th>交易单号</th>
			<th>付款说明</th>
			<th>提现金额</th>
			<th>到账金额</th>
			<th>佣金</th>
			<th>提现状态</th>
			<th>提现时间</th>
		</tr>
		</thead>
		</td>		<tbody>
		<foreach name="info" item="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.user_id}</td>
				<td>{$vo.nick_name}</td>
				<td><img src="{$vo.head_img}" width="50" height="50"/></td>
				<td>{$vo.partner_trade_no}</td>
				<td>{$vo.pay_desc}</td>
				<td><b>{$vo.amount}</b></td>
				<td><b>{$vo.true_amount}</b></td>
				<td><b>{$vo.profit_amount}</b></td>
				<td>
					<b>
					<if condition="$vo.status == '失败'" ><font style="color:red">{$vo.status}</font>
						<else/>
						{$vo.status}
					</if>
				   </b>
				</td>
				<td>{$vo.add_time}</td>
			</tr>
		</foreach>
		</tbody>
	</table>
	<div class="pagination">{$page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    $('.img-show').on('click',function(){
        var img_src = $(this).attr('attr-img');
        console.log(img_src);
        //页面层-自定义
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            shadeClose: true,
            skin: 'yourclass',
            content: '<img src="'+img_src+'"/>'
        });
    })

</script>
</body>
</html>